{template 'common/header'}
<div class="main">
	<ul class="nav nav-tabs">
		<li><a href="{php echo $this->createWebUrl('answer', array('id'=>$sinfo['rid']))}">调研报告统计</a></li>
		<li class="active"><a href="{php echo $this->createWebUrl('answer', array('id'=>$sinfo['rid'],'act'=>'detail_list'))}">详细调研报告</a></li>
	</ul>

	{template 'survey_info'}

	<div class="panel panel-default">
		<div class="panel-heading">
			调研问题列表 <span style="height:16px;line-height:16px" class="label label-success">共 {$sinfo['num']} 人参与调研</span> 
		</div>
		<div class="panel-body">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
						<th style="width:60px;" class="row-first">UID</th>						
	                    <th style="width:100px;">用户名</th>
	                    <th style="width:120px;">手机号</th>
	                    {loop $question_list $row}
	                    {if $row['is_show']==1}
	                    <th>{$row['title']}</th>
	                    {/if}
	                    {/loop}
	                    <th style="width:100px; text-align:center;">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $answer_list $row}
						<tr>		
							<td class="row-first">{$row['uid']}</td>
	                        <td><a href="{php echo url('mc/member/post', array('uid'=>$row['uid']))}" target="_blank">{$userinfo[$row['uid']]['realname']}</a></td>
	                        <td>{$userinfo[$row['uid']]['mobile']}</td>
	                        {loop $question_list $qrow}
	                        {if $qrow['is_show']==1}
	                        <td>
	                        {$row['totals'][$qrow['sqid']]}
	                        </td>
	                        {/if}
	                        {/loop}
	                        <td align="center">
								<a href="{php echo $this->createWebUrl('answer', array('uid'=>$row['uid'],'id'=>$sinfo['rid'],'act'=>'detail_view'));}" >详情</a> | 
	                        	<a href="{php echo $this->createWebUrl('answer_delete', array('uid'=>$row['uid'],'sid'=>$sinfo['sid']));}" onclick="return confirm('删除记录后不可恢复,确定要删除吗?')" >删除</a>
	                        </td>
						</tr>
					{/loop}
				</tbody>
			</table>
			{$pager}
		</div>
	</div>
</div>
{template 'common/footer'}